feat(sedona-gdal): add high-level safe GDAL API wrappers#682
Draft
Kontinuation wants to merge 5 commits intoapache:mainfrom
Draft
feat(sedona-gdal): add high-level safe GDAL API wrappers#682Kontinuation wants to merge 5 commits intoapache:mainfrom
Kontinuation wants to merge 5 commits intoapache:mainfrom
Conversation
Add the sedona-gdal crate providing runtime-loaded GDAL FFI bindings via libloading. This includes the SedonaGdalApi function-pointer struct, dynamic symbol loading, the GdalApi handle with call_gdal_api! macro, error types, and global API registration.
- Introduce GdalApiBuilder with lazy initialization pattern (similar to sedona-proj's ProjCrsEngineBuilder): configure_global_gdal_api now stores a builder in a Mutex, and get_global_gdal_api builds the API on first access. This allows callers to override configuration before the first GDAL operation. - Add compile_error! for unsupported platforms (non-unix, non-windows) in current_process_library. - Add 9 unit tests covering loading errors, symbol loading, builder configuration, and global API access.
fcdfb41 to
72b2e7e
Compare
Add safe Rust wrappers on top of the dynamically loaded GDAL bindings: Dataset, Driver, RasterBand, SpatialRef, Geometry, Feature, Layer, VRT, VSI, rasterize, polygonize, and supporting types. These APIs use the georust/gdal v0.19.0 crate as a reference (see file-level doc comments for attribution).
72b2e7e to
2c0cbd8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dataset,Driver/DriverManager,RasterBand,SpatialRef,Geometry,Feature,Layer, VRT dataset builder, VSI virtual filesystem,rasterize,rasterize_affine,polygonize,GeoTransform,CslStringList,MemDatasetBuilder, and supporting types.Depends on #681.